package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.Photo;
import com.yxx.entityModel.vo.query.PhotoQuery;
import com.yxx.entityModel.vo.response.PhotoBackResponse;
import com.yxx.entityModel.vo.response.PhotoResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/2/1
 * @apiNote
 */
@Repository
public interface PhotoMapper extends BaseMapper<Photo> {
    /**
     * 分页查询后台照片列表
     * @param photoQuery
     * @return
     */
    List<PhotoBackResponse> selectBackPhotoListVO(@Param("param") PhotoQuery photoQuery);

    /**
     * 根据 albumId 查询照片列表
     * @param albumId
     * @return
     */
    List<PhotoResponse> selectPhotoVOList(@Param("albumId") Integer albumId);
}
